<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    
</body>
</html>
<script>
    var a=prompt("请输入鸽鸽爱好")
    if(a=='唱'){
        alert("只因")
    }else if(a=='跳'){
        alert("你")
    }else if(a=='rap'){
        alert("太美")
    }else if("篮球"){
        alert("只因你太美")
    }else{
        alert("黑子")
    }
</script>